import request from '@/utils/request'
//引入axios（二次封装）

//获取SKU列表数据的接口
export const reqSkuList =(page,limit)=>{
    return request ({url:`/admin/product/list/${page}/${limit}`,method:'get'});
}

//上架接口
export const reqSale =(skuId)=>{
    return request ({url:`/admin/product/onSale/${skuId}`,method:'get'});
}

//下架接口
export const reqCancel =(skuId)=>{
    return request ({url:`/admin/product/cancelSale/${skuId}`,method:'get'});
}

//获取SKU详情的接口
export const reqSkuById =(skuId)=>{
    return request ({url:`/admin/product/getSkuById/${skuId}`,method:'get'});
}